import httpInstance from '../utils/http'
export const loginAPI = ({account, password}) => {
    return httpInstance({
        url: '/login',
        method: 'POST',
        data: {
            account:account,
            password:password
        }
    })
    
}

export const registerAPI = ({account, nickname, password}) => {
    return httpInstance({
        url: '/register',
        method: 'POST',
        data: {
            account:account,
            nickName:nickname,
            password:password
        }
    })
}